package com.ujoku.service.impl;

import com.labillusion.core.database.base.mybatis.dao.BaseDao;
import com.labillusion.core.database.base.mybatis.service.base.impl.BaseServiceImpl;
import com.ujoku.dao.CMSContentDao;
import com.ujoku.domain.CMSContent;
import com.ujoku.service.CMSContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * Created by Andy.Lian on 2015/3/8.
 */
@Service
public class CMSContentServiceImpl extends BaseServiceImpl<CMSContent> implements CMSContentService<CMSContent>{
    @Autowired
    private CMSContentDao cmsContentDao;

    @Override
    protected BaseDao<CMSContent> getBaseDao(){return this.cmsContentDao;}

    @Override
    public CMSContent selectActivtyContent(){
        HashMap<String,String> map=new HashMap<>();
        map.put("type","activity");
        return (CMSContent)cmsContentDao.selectOne(map);
    }
}
